<!DOCTYPE html>
<html>
<head>
<%
// TODO: 此处的标题我暂时改掉,这样我可以大摇大摆的开这个页面;
%>
<title>Spring3 + hibernate4 + struts2整合测试</title>
<jsp:include page="../include/header.jsp" />
</head>
<body class="admin">
<div class="navbar">
	<div class="navbar-inner">
		<a class="brand" href="admin/main.action">
			<span>Smartao管理控制台</span>
		</a>
		<ul class="nav pull-right">
           	<li><a href="" title="返回主页"><i class="icon-white icon-home"></i><span class="text">主页</span></a></li>
        	<li><a href="smartao_logout" title="注销"><i class="icon-white icon-share-alt"></i>注销</a></li>
		</ul>
	</div>
</div>
<div id="admin-slider" class="sidebar-nav admin-slider">
	<ul class="menu">
		<li class="nav-header"><i class="icon-home"></i><span>系统菜单</span></li>
		<c:forEach var="menu" items="${menus}">
		<li id="${menu.id}" hasChild="${menu.hasChild}">
			<a href="${menu.link}" target="admin-frame">
				<c:choose>
   				<c:when test="${menu.hasChild}">
				<i class="icon-caret-right"></i>
				</c:when>
				<c:otherwise>
				<i class="icon-blank"></i>
				</c:otherwise>
				</c:choose>
				<i class="icon-list-alt"></i>
				<span>${menu.name}</span>
			</a>
		</li>
		</c:forEach>
	</ul>
</div>
<div id="admin-container" class="admin-container clearfix">
	<iframe frameborder="0" id="admin-frame" name="admin-frame" src="admin/main!sysinfo.action"></iframe>
</div>
<script type="text/javascript">
$(function(){
	base.admin.init();
});
</script>
</body>
</html>